package com.hanko.web;

import io.swagger.annotations.Api;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @desc: Home
 * @author: luodengxiong
 * @date: 2020-12-21 19:51:58
 **/

@Api(tags = "首页")
@RestController
@RequestMapping("/")
public class HomeController {

   @GetMapping("")
   public String index() throws IOException {

       return "home page,todo something";
   }
}
